import type { profileResult, UpdateUserInfoResult, UpdateUserInfoType } from '@/types/profile'
import { http } from '@/utils/http'

// 获取个人信息
export const GetProfileApi = () => {
  return http<profileResult>({
    method: 'GET',
    url: '/member/profile',
  })
}
// 修改个人信息
export const putUserInfoApi = (data: UpdateUserInfoType) => {
  return http<UpdateUserInfoResult>({
    method: 'PUT',
    url: '/member/profile',
    data,
  })
}
